import React, {Component} from 'react';

// 子组件
class Child extends Component {
  render() {
    return (
      <div style={{backgroundColor: "yellow"}}>
        子组件<br/>
        标签属性 name = {this.props.name}
        标签内容 = {this.props.children}
      </div>
    );
  }
}

export default Child;